﻿@model SimpleScrum.Areas.Admin.Models.RolesModel
@{
    ViewBag.Title = "Users In Role";
}
<div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <i class="icon-home home-icon"></i>
                        <a href="@Url.Action("Index","ControlPanel")">Home</a>
                        <span class="divider">
                            <i class="icon-angle-right arrow-icon"></i>
                        </span>
                    </li>
                    <li class="active">Users In Roles</li>
                </ul>
                <!--.breadcrumb-->
                <div class="nav-search" id="nav-search">
                    <form class="form-search">
                        <span class="input-icon">
                            <input type="text" plscrumholder="Search ..." class="input-small nav-search-input" id="nav-search-input" autocomplete="off" />
                            <i class="icon-search nav-search-icon"></i>
                        </span>
                    </form>
                </div>
            </div>
<div class="page-content">
    <div class="row-fluid">
        <div class="span10 offset1">
            <hgroup>
                <h1 class="green">@ViewBag.Title</h1>
                @Html.ActionLink("control roles","AccountManagement", "ControlPanel", new{@Class="btn btn-info"})
            </hgroup>
            <h1>Roles</h1>
            <ul class="unstyled">
                @foreach(var roles in Roles.GetAllRoles())
                {
                    <li class="lead">@roles</li>
                    <ul class="unstyled">
                        @foreach(var userRole in Roles.GetUsersInRole(roles))
                        {
                            <li>@userRole</li>
                        }<br/>
                    </ul>
                }
            </ul>
        </div>
    </div>
</div>